﻿using System;
using System.ComponentModel;
using System.Windows.Controls;
using System.Windows.Input;
using PairingMatrix.Design;

namespace PairingMatrix.View
{
    public partial class TeamMemberCardControl : UserControl
    {
        public TeamMemberCardControl()
        {
            if (DesignerProperties.IsInDesignTool)
                DataContext = new TeamMemberCardViewModel();
            InitializeComponent();
        }

        private void titleBar_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
        }

        private void imgPhoto_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            
        }

        private void name_IsEnabledChanged(object sender, System.Windows.DependencyPropertyChangedEventArgs e)
        {
            name.Focus();
            name.SelectAll();
        }
    }
}
